import React, { CSSProperties } from "react";

const Icon = ({
  svgId,
  style,
}: {
  svgId: string;
  style: CSSProperties;
}): JSX.Element => {
  return (
    <svg style={style}>
      <use href={`#${svgId}`}></use>
    </svg>
  );
};

export default Icon;
